package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 缺陷信息对象 sys_fault
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
public class SysFault extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 缺陷id */
    @Excel(name = "缺陷编号")
    private Long faultId;

    /** 缺陷及故障描述 */
    @Excel(name = "缺陷及故障描述")
    private String faultDescription;

    /** 缺陷电压等级 */
    @Excel(name = "缺陷电压等级")
    private String voltageLevel;

    /** 变电站名称 */
    @Excel(name = "变电站名称")
    private String substationName;

    /** 是否智能设备 */
    @Excel(name = "是否智能设备")
    private String intelligent;

    /** 缺陷类型 */
    @Excel(name = "缺陷类型")
    private String defectT;

    /** 发现时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发现时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 厂商名称 */
    @Excel(name = "厂商名称")
    private String supplierName;

    /** 缺陷性质 */
    @Excel(name = "缺陷性质")
    private String degree;

    /** 是否处理 */
    @Excel(name = "是否处理")
    private String handle;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    /** 责任部门 */
    @Excel(name = "责任部门")
    private String leader;

    /** 缺陷来源 */
    @Excel(name = "缺陷来源")
    private String source;

    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }
    public void setFaultDescription(String faultDescription) 
    {
        this.faultDescription = faultDescription;
    }

    public String getFaultDescription() 
    {
        return faultDescription;
    }
    public void setVoltageLevel(String voltageLevel) 
    {
        this.voltageLevel = voltageLevel;
    }

    public String getVoltageLevel() 
    {
        return voltageLevel;
    }
    public void setSubstationName(String substationName) 
    {
        this.substationName = substationName;
    }

    public String getSubstationName() 
    {
        return substationName;
    }
    public void setIntelligent(String intelligent) 
    {
        this.intelligent = intelligent;
    }

    public String getIntelligent() 
    {
        return intelligent;
    }
    public void setDefectT(String defectT) 
    {
        this.defectT = defectT;
    }

    public String getDefectT() 
    {
        return defectT;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setDegree(String degree) 
    {
        this.degree = degree;
    }

    public String getDegree() 
    {
        return degree;
    }
    public void setHandle(String handle) 
    {
        this.handle = handle;
    }

    public String getHandle() 
    {
        return handle;
    }
    public void setOverTime(Date overTime) 
    {
        this.overTime = overTime;
    }

    public Date getOverTime() 
    {
        return overTime;
    }
    public void setLeader(String leader) 
    {
        this.leader = leader;
    }

    public String getLeader() 
    {
        return leader;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultId", getFaultId())
            .append("faultDescription", getFaultDescription())
            .append("voltageLevel", getVoltageLevel())
            .append("substationName", getSubstationName())
            .append("intelligent", getIntelligent())
            .append("defectT", getDefectT())
            .append("startTime", getStartTime())
            .append("supplierName", getSupplierName())
            .append("degree", getDegree())
            .append("handle", getHandle())
            .append("overTime", getOverTime())
            .append("leader", getLeader())
            .append("source", getSource())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
